<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社区中心</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f5f5f5;
            color: #333;
        }
        
        .container {
            max-width: 375px;
            margin: 0 auto;
            background: white;
            min-height: 100vh;
            position: relative;
        }
        
        .header {
            text-align: center;
            padding: 20px 0;
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
        
        .section {
            padding: 0 16px;
            margin-bottom: 24px;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .section-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }
        
        .more-link {
            font-size: 14px;
            color: #20b2aa;
            text-decoration: none;
        }
        
        .cards-container {
            display: flex;
            gap: 12px;
            margin-bottom: 16px;
        }
        
        .card {
            flex: 1;
            background: white;
            border-radius: 8px;
            padding: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            text-align: center;
        }
        
        .card-icon {
            width: 40px;
            height: 40px;
            margin: 0 auto 8px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }
        
        .card-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 4px;
        }
        
        .card-desc {
            font-size: 12px;
            color: #666;
        }
        
        .buttons-container {
            display: flex;
            gap: 8px;
        }
        
        .button {
            flex: 1;
            background: white;
            border: none;
            border-radius: 8px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            cursor: pointer;
        }
        
        .button.active {
            background: #20b2aa;
            color: white;
        }
        
        .button-icon {
            font-size: 18px;
        }
        
        .button-text {
            font-size: 12px;
        }
        
        .list-item {
            display: flex;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .list-item:last-child {
            border-bottom: none;
        }
        
        .list-icon {
            width: 20px;
            height: 20px;
            margin-right: 12px;
            color: #20b2aa;
        }
        
        .list-text {
            flex: 1;
            font-size: 14px;
        }
        
        .list-arrow {
            color: #ccc;
        }
        
        .icons-container {
            display: flex;
            justify-content: space-around;
            margin-top: 12px;
        }
        
        .icon-item {
            text-align: center;
        }
        
        .icon-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #20b2aa;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 4px;
            color: white;
            font-size: 18px;
        }
        
        .icon-label {
            font-size: 12px;
            color: #666;
        }
        
        .activity-item {
            display: flex;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .activity-item:last-child {
            border-bottom: none;
        }
        
        .activity-date {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            color: white;
            font-weight: bold;
        }
        
        .activity-date.day {
            font-size: 18px;
        }
        
        .activity-date.weekday {
            font-size: 10px;
        }
        
        .activity-content {
            flex: 1;
        }
        
        .activity-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 4px;
        }
        
        .activity-info {
            font-size: 12px;
            color: #666;
        }
        
        .activity-tag {
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 10px;
            color: #333;
        }
        
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 375px;
            background: white;
            border-top: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-around;
            padding: 8px 0;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            font-size: 10px;
            color: #666;
            text-decoration: none;
        }
        
        .nav-item.active {
            color: #20b2aa;
        }
        
        .nav-icon {
            font-size: 16px;
        }
        
        .nav-text {
            font-size: 10px;
        }
        
        .nav-item.active .nav-icon {
            background: #20b2aa;
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">社区中心</div>
        
        <!-- 邻里互助 -->
        <div class="section">
            <div class="section-header">
                <div class="section-title">邻里互助</div>
                <a href="#" class="more-link">更多</a>
            </div>
            <div class="cards-container">
                <div class="card">
                    <div class="card-icon">🔧</div>
                    <div class="card-title">工具箱</div>
                    <div class="card-desc">5号楼·免费借用</div>
                </div>
                <div class="card">
                    <div class="card-icon">👨‍👩‍👧‍👦</div>
                    <div class="card-title">小学辅导</div>
                    <div class="card-desc">周末·请提前预约</div>
                </div>
            </div>
        </div>
        
        <!-- 安全关怀 -->
        <div class="section">
            <div class="section-header">
                <div class="section-title">安全关怀</div>
            </div>
            <div class="buttons-container">
                <button class="button" onclick="alert('该功能仅在小程序中可用')">
                    <div class="button-icon">💡</div>
                    <div class="button-text">一键报平安</div>
                </button>
                <button class="button">
                    <div class="button-icon">🔍</div>
                    <div class="button-text">协议查询</div>
                </button>
                <button class="button active">
                    <div class="button-icon">🏥</div>
                    <div class="button-text">应急医疗</div>
                </button>
            </div>
        </div>
        
        <!-- 资源导航 -->
        <div class="section">
            <div class="section-header">
                <div class="section-title">资源导航</div>
                <a href="#" class="more-link">查看全部</a>
            </div>
            <div class="list-item">
                <div class="list-icon">🔧</div>
                <div class="list-text">物业报修</div>
                <div class="list-arrow">></div>
            </div>
            <div class="icons-container">
                <div class="icon-item">
                    <div class="icon-circle">🍉</div>
                    <div class="icon-label">便利店</div>
                </div>
                <div class="icon-item">
                    <div class="icon-circle">🧁</div>
                    <div class="icon-label">蛋糕房</div>
                </div>
                <div class="icon-item">
                    <div class="icon-circle">🏥</div>
                    <div class="icon-label">社区卫生站</div>
                </div>
            </div>
        </div>
        
        <!-- 近期活动 -->
        <div class="section">
            <div class="section-header">
                <div class="section-title">近期活动</div>
            </div>
            <div class="activity-item">
                <div class="activity-date" style="background: #20b2aa;">
                    <div class="day">15</div>
                    <div class="weekday">周二</div>
                </div>
                <div class="activity-content">
                    <div class="activity-title">春季社区健步走</div>
                    <div class="activity-info">14:30-16:00 社区广场</div>
                </div>
                <div class="activity-tag" style="background: #f0f0f0;">报名中</div>
            </div>
            <div class="activity-item">
                <div class="activity-date" style="background: #90EE90;">
                    <div class="day">18</div>
                    <div class="weekday">周五</div>
                </div>
                <div class="activity-content">
                    <div class="activity-title">环保手工作坊</div>
                    <div class="activity-info">09:30-11:30 社区活动室</div>
                </div>
                <div class="activity-tag" style="background: #90EE90;">剩余15位</div>
            </div>
        </div>
        
        <!-- 底部导航 -->
        <div class="bottom-nav">
            <a href="#" class="nav-item">
                <div class="nav-icon">🏠</div>
                <div class="nav-text">首页</div>
            </a>
            <a href="#" class="nav-item">
                <div class="nav-icon">📅</div>
                <div class="nav-text">预约</div>
            </a>
            <a href="#" class="nav-item active">
                <div class="nav-icon">🏠</div>
                <div class="nav-text">社区</div>
            </a>
            <a href="#" class="nav-item">
                <div class="nav-icon">📋</div>
                <div class="nav-text">服务</div>
            </a>
            <a href="#" class="nav-item">
                <div class="nav-icon">👤</div>
                <div class="nav-text">我的</div>
            </a>
        </div>
    </div>
</body>
</html>